package com.lighting.smssystem.aspect;

import com.lighting.smssystem.constrants.RoleRel;
import com.lighting.smssystem.constrants.UserRole;

import java.lang.annotation.*;

/**
 * @author leemaster
 * @Title: RequireRole
 * @Package com.lighting.smssystem.aspect
 * @Description:
 * @date 2019-06-0413:42
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface RequireRole {

    UserRole[] role() default {UserRole.COMMON};

    RoleRel rel() default RoleRel.OR;
}
